Skip to content

Update logging.rst #12367

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 25, 2019
Merged

Update logging.rst #12367

merged 1 commit into from
Sep 25, 2019

Conversation

vmeijer
Copy link
Contributor

@vmeijer vmeijer commented Sep 25, 2019

In the XML example of Logging - How to Rotate your Log Files a dash is used for the attribute max-files, but in the comment above the monolog:handler XML element an underscore was used (max_files).

Other XML examples in the Symfony Docs (like the routing doc page) use dashes for XML attributes, so it looks like this XML attribute shares that style, and the comment could be changed instead.

In XML a dash is used for the attribute max-files, but in the comment above that XML element an underscore was used (max_files).
Other XML examples in the Symfony Docs (like the routing doc page) use dashes for XML attributes, so I concluded that this XML attribute is also correctly written, and the comment has to be changed instead.
@vmeijer vmeijer changed the title Fix typo for max-files Update logging.rst Sep 25, 2019
@javiereguiluz javiereguiluz added this to the 3.4 milestone Sep 25, 2019
@javiereguiluz
Copy link
Member

@vmeijer super nice catch and perfectly explained! Thanks a lot for fixing this ... and congrats on your first Symfony Docs contribution!

javiereguiluz added a commit that referenced this pull request Sep 25, 2019
This PR was merged into the 3.4 branch.

Discussion
----------

Update logging.rst

In the XML example of [Logging - How to Rotate your Log Files](https://symfony.com/doc/current/logging.html#how-to-rotate-your-log-files) a dash is used for the attribute `max-files`, but in the comment above the `monolog:handler` XML element an underscore was used (`max_files`).

Other XML examples in the Symfony Docs (like the routing doc page) use dashes for XML attributes, so it looks like this XML attribute shares that style, and the comment could be changed instead.

Commits
-------

e9f12fc Fix typo for max-files
@javiereguiluz javiereguiluz merged commit e9f12fc into symfony:3.4 Sep 25, 2019
@vmeijer vmeijer deleted the patch-1 branch September 26, 2019 07:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants